c228769af21d0bd28187069e8a686e012d2a1cf5,portal-impl/src/com/liferay/portal/dao/shard/advice/ShardIterativelyAdvice.java,ShardIterativelyAdvice,invoke,#MethodInvocation#,38

Before Change


			_shardAdvice.pushCompanyService(shardName);

			try {
				methodInvocation.proceed();
			}
			finally {
				_shardAdvice.popCompanyService();

After Change


			_shardAdvice.pushCompanyService(shardName);

			try {
				Object value = methodInvocation.proceed();

				if (shardName.equals(ShardUtil.getDefaultShardName())) {
					returnValue = value;
				}
			}
			finally {
				_shardAdvice.popCompanyService();

				CacheRegistryUtil.clear();
			}
		}

		return returnValue;
	}

	public void setShardAdvice(ShardAdvice shardAdvice) {